function [x y z] = loadPointFile(filePath)
    %MATLAB
    data = importdata(filePath);
    x = data.data(:,1);
    y = data.data(:,2);
    z = data.data(:,3);
    
    %OCTAVE

%    file = fopen(filePath, 'r');
%    k=1;
%    while( !feof(file) )
%    	string = fgets(file);  % reads in a line
%    	[tmp_data, n_items] = sscanf(string, "%f %f %f\n");  % scans the line
%        	if (n_items == 3)      % if 3 numbers were found on the line
%        	    x(k) = tmp_data(1);
%        	    y(k) = tmp_data(2);
%        	    z(k) = tmp_data(3);
%        	else
%        	    error('File corrupted');
%        	end
%    	k = k +1;
%    end 
%    x=x';
%    y=y';
%    z=z';
end